package aop.view;

import aop.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Author：汤小洋
 * Date：2022-11-23 13:52
 * Description：<描述>
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("aop/spring.xml");


        UserController userController = (UserController) ac.getBean("userController");

        userController.login("tom","123");

        System.out.println("------------------------------------------");

        userController.logout();
    }
}
